local ui = require "JS"
--ui_ref = true
init("0",1)
local w_,h_ = getScreenSize() --w < h
local h = w_
local w = h_
--主ui界面
playAudio("老君设置.wav") 
local qqqq = {
  {
    ["goto"] = "http://www.haoi23.net",
    ["text"] = "点击进入好爱官网",
  }
}
ui:new(w,h,"确定","退出","save_好爱.dat")
local p = ui:newPage("基本设置")
p:newLine(0.6)

p:addLebel(8,1,"请选择自动过老君的答题方式：","20","center","255,0,0")
p:newLine()
local b = p:newBox(6,0)
p:newLine(-1)
b:addRadioBoxGroup(8,1,"用谁的","0","用作者的题分","用自己的题分","使用若快答题（推荐）")
----------------------------------
p:newLine(0)
p:addLebel(8,1,"老君设置↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓","20","center","82,190,69")
----------------------------------
p:newLine(0.3)
p:addLebel(1.5,1,"选择平台:")
p:addComboBox(1.5,1,"选择平台1","0","好爱","小爱","特游")
----------------------------------
p:newLine(0)
p:addLebel(1.2,1,"密码串:")
p:addEdit(4,0.8,"密码串1","","例：13929851471|A4AABCDE1BE098FD","default","20","left","0,0,0")
p:addLebel(2.3,1,"点击进入好爱官网","20","center","250,0,0",qqqq)
--p:addEdit(10,1,"编辑","11","0","ssa","default","20","left","0,0,0")-1
--（w,h,id,text,例子，kbtype，大小，left，颜色）
----------------------------------
p:newLine(0)
local b = p:newBox(6,0)
b:addCheckBoxGroup(10,1,"显示提分","0","时时显示剩余提分（如果使用的作者提分此功能选择无效）")
----------------------------------
p:newLine(0.3)
p:addLebel(8,1,"老君设置↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑","20","center","82,190,69")
--------------------
p:newLine(0)
p:addLebel(1.5,1,"若快账号:")
p:addEdit(2,0.8,"快账号","","13929851471","default","20","left","0,0,0")
p:addLebel(1.5,1,"若快密码:")
p:addEdit(2,0.8,"快密码","","13929851471","default","20","left","0,0,0")
--------------
p:newLine(-0.2)
p:addLebel(8,1,"PS:如果用作者的提分那么下方的（老君设置请直接忽略）答题不需要自己购买好爱","20","center","250,0,0")
----------------------------------
p:newLine(-0.2)
p:addLebel(8,1,"PS:如果用自己的提分需要自己购买好爱（优点：可以随时查看自己的答题记录）","20","center","250,0,0")
----------------------------------
p:newLine(-0.2)
p:addLebel(8,1,"官方唯一QQ群：608765301 帮您解答任何脚本疑惑","20","center","250,0,0")
----------------------------------
ret1,result1 = ui:show()
if ret1 == 0 then lua_exit() else stopAudio() end
print(result1)
密码=result1["密码串1"]
print(密码)
平台=result1["选择平台1"]
print(平台)
谁的=result1["用谁的"]
print(谁的)
设置账号=result1["快账号"]
print(设置账号)
设置密码=result1["快密码"]
print(设置密码)


sysLog(""..tostring(shui))

